package com.maybach.common.enums.order;

/**
 * Created by zhaoshuai on 16/3/1.
 */
public enum InfoStatusEnum {
    never(-1,"未上传"), // 数据中没有数据
    init(0,"进行中"),
    pass(1, "审核通过"),
    reject(5, "审核未通过,驳回");

    private int status;

    private String desc;

    InfoStatusEnum(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public int getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }
    
    public static String getDescByStatus(int status) {
        for (InfoStatusEnum infoStatusEnum : InfoStatusEnum.values()) {
            if (infoStatusEnum.getStatus() == status) {
                return infoStatusEnum.desc;
            }
        }
        return null;
    }
}
